if(NOT KMPKG_TARGET_IS_WINDOWS)
    kmpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()

kmpkg_from_gitee(
        OUT_SOURCE_PATH SOURCE_PATH
        REPO kumo-pub/marisa
        REF v${VERSION}
        SHA512 8468be3fed37a73da350822c6da3f09e180509c92a1427c6b23ac3163fa4efc743676f5d9c34aa920a994ffc2092a23d1b36e3291259a95c5cc1eff4901aef1f
        HEAD_REF master
)

kmpkg_cmake_configure(
    SOURCE_PATH "${SOURCE_PATH}"
    DISABLE_PARALLEL_CONFIGURE
    OPTIONS
        -DKMCMAKE_BUILD_TEST=OFF
        -DBUILD_TOOLS=OFF
)



kmpkg_cmake_install()
kmpkg_cmake_config_fixup(PACKAGE_NAME marisa CONFIG_PATH lib/cmake/marisa)
kmpkg_fixup_pkgconfig()

kmpkg_copy_pdbs()

kmpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
